﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using CashFlow.Db.DAL;
using CashFlow.Db.Entity;
using ConsoleApplication1._01_Config;

namespace ConsoleApplication1._03_Service._00_Db
{
    public class UserService
    {
        public static IList<UserInfoEntity> QueryAll()
        {
            using (var db = SqlSugarHelper.GetDb())
            {
                var ls = db.Queryable<UserInfoEntity>()
                            .Where(x => x.Id != MyConfig.MTCPUserId)
                            .ToList();
                return ls;
            }
        }
    }
}
